# filename:extensions.py
from flask_login import LoginManager

login_manager = LoginManager()

from model import User


@login_manager.user_loader
def load_user(userId):
    return User.query.get(userId)


login_manager.login_view = 'auth.login'
